package com.neighbor.neighborhooduser.controller;

import com.neighbor.neighborhooduser.service.IMallProductTypesService;
import com.neighbor.neighborhooduser.utils.ResponseMsg;
import org.springframework.beans.factory.annotation.Autowired;import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 商品类型表 前端控制器
 * </p>
 *
 * @author song
 * @since 2025-09-22 09:13:04
 */
@RestController
@RequestMapping("/mallProductTypes")
public class MallProductTypesController {
    @Autowired
    IMallProductTypesService mallProductTypesService;
    // 得到所有商品类型信息
    @RequestMapping("mallProductTypes")
    ResponseMsg mallProductTypes(){
        return ResponseMsg.getInstance(ResponseMsg.SUCCESS, "商品类型", mallProductTypesService.list());
    }
}
